// 配置编译环境和线上环境之间的切换

const env = process.env
const baseUrl = 'http://192.168.10.12';
let apiPrefix = '/api-gee';
let city = '珠海市';
let cityId = 478;
let cityPinyin = 'zhuhai';
let cityMapCenter = [113.29673,22.20907];
let geoserver = '/geoserver'
// 图表库为avue和pig2套地址
const iconfontUrl = ['//at.alicdn.com/t/font_667895_v7uduh4zui.css', '//at.alicdn.com/t/c/font_1638883_9yea0jvav1.css']
const codeUrl = `${window.location.origin}/code`
const actUrl = `${window.location.origin}/act/modeler.html?modelId=`
let origin = window.location.origin;

if (env.NODE_ENV === 'development') {
  // apiPrefix = '/api-shantou';
  // city = '汕头市';
  // cityId = 418;
  // cityPinyin = 'shantou';
  // cityMapCenter = [116.708463, 23.37102];
  // geoserver = 'https://miniapp.gdaes.com.cn:30080/geoserver'
} else if (env.NODE_ENV === 'production') {
  apiPrefix = '/api';
  city = '珠海市';
  cityId = 478;
  cityPinyin = 'zhuhai';
  geoserver = window.location.origin+'/geoserver'
} else if (env.NODE_ENV === 'test') {

}
export {
  baseUrl,
  actUrl,
  iconfontUrl,
  codeUrl,
  env,
  apiPrefix,
  city,
  cityId,
  cityPinyin,
  cityMapCenter,
  geoserver
}
